package com.wang.service;

import com.wang.mapper.UserMapper;
import com.wang.pojo.Husband;
import com.wang.pojo.User;
import org.junit.Test;

import java.util.List;

public class UserServiceImpl implements UserService{

    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Test
    public List<User> userList() {

        return userMapper.userList();

    }

    public List<Husband> husbandList() {
        return userMapper.husbandList();
    }


}
